#define _CRT_SECURE_NO_WARNINGS 520
#include<stdio.h>

void odd_even_num(char* a1, char* odd, char* even)
{
	while (*a1 != '\0')
	{
		if (*a1 % 2 == 0)
		{
			*odd = *a1;
			a1++;
			odd++;
		}
		else if (*a1 % 2 != 0)
		{
			*even = *a1;
			even++;
			a1++;
		}
	}
	
}

int main()
{
	char a1[20] = { 0 };
	char odd[20] = { 0 };
	char even[20] = { 0 };
	scanf("%s", a1);
	odd_even_num(a1, odd, even);
	printf("%s %s", odd, even);
	return 0;
	
}